package newtank;

import newtank.network.server.NettyServer;

/**
 * 服务端应用
 * @author lijiahao
 * @since 2022/1/27
 */
public class ServerApplication {

    private final NettyServer nettyServer = new NettyServer(8000);

    public void start() throws InterruptedException {
        nettyServer.run();
    }

    public static void main(String[] args) {
        try {
            new ServerApplication().start();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

}
